package main

import (
	"fmt"
	"os"

	"github.com/go-git/go-git/v5"
)

func main() {
	_, err := git.PlainClone("D:/tmp/go-git", false, &git.CloneOptions{
		URL:      "https://github.com/go-git/go-git",
		Progress: os.Stdout,
		Depth:    1,
	})
	if err != nil {
		fmt.Printf("error: %v\n", err)
	}
}
